import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/components/vant.js'
import 'vant/lib/index.css';

Vue.config.productionTip = false

Vue.filter('componentFilter', function (value) {
  return "￥" + value.toFixed(2)
})

Vue.filter('flootPirce', function (value) {
  if (!value) { return 0 }
  return value.toFixed(2)
})

Vue.filter('price', val => {
  if (!val) return 0
  return "￥" + val.toFixed(2)
})
Vue.filter('shoppingPirce', val => {
  if (!val) return 0
  return val * 100;
})

import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
  loading: require('@/components/public/img/111.gif')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
